#pragma once 

#include "epoll.h"

class CSocks5Server : public CEpollServer
{
public:
  CSocks5Server(int port = 8801)
    :CEpollServer(port)
  {}

  int Auth(int connectfd);
  int EstablishConnection(int connectfd);

  virtual void _DoConnectEventHandle(int connectfd);
  virtual void _DoReadEventHandle(int connectfd);
};
